﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ppt = Microsoft.Office.Interop.PowerPoint;

namespace ObjectModel.PowerPoint
{
    public static class LinkedObjectFactory
    {
        public static LinkedObject CreateFromSelection()
        {
            Ppt.Application app = Globals.Application;
            Ppt.Selection sel = app.ActiveWindow.Selection;

            return CreateFromSelection(sel);
        }

        static LinkedObject CreateFromSelection(Ppt.Selection sel)
        {
            return new LinkedTextRange(sel.TextRange);
        }
    }
}
